package com.xo.mall.mapper;

import com.xo.common.Result.ResultResponse;
import com.xo.common.pojo.dto.req.EditBrandByIdDto;
import com.xo.common.pojo.dto.req.PageBrandListDto;
import com.xo.common.pojo.entity.PmsBrandEntity;
import com.xo.common.pojo.vo.BrandListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PmsBrandMapper {

    int brandCreate(@Param("pmsBrandEntity") PmsBrandEntity pmsBrandEntity);

    List<BrandListVo> selectBrandList(@Param("pageBrandListDto") PageBrandListDto pageBrandListDto);

    int selectBrandByBrandName(@Param("brandName") String brandName);

    int deleteBrandById(@Param("id") Integer id);

    int editBrandById(@Param("editBrandByIdDto") EditBrandByIdDto editBrandByIdDto);
}
